<?php

namespace models\Exception\Business;

use Exception;


class WithdrawException extends Exception {

    const WITHDRAW_IS_NOT_EXISTS = '提款订单不存在';
    const WITHDRAW_IS_NOT_EXISTS_NO = '400';

    const WITHDRAW_CREATE_FAILURE = '提款订单创建失败';
    const WITHDRAW_CREATE_FAILURE_NO = '422';

    const WITHDRAW_EDIT_FAILURE = '提款订单编辑失败';
    const WITHDRAW_EDIT_FAILURE_NO = '422';

    const WITHDRAW_ID_IS_EMPTY = '提款订单编号不能为空';
    const WITHDRAW_ID_IS_EMPTY_NO = '400';

    const INVALID_CHANNEL = "提现通道仅支持支付宝";
    const INVALID_CHANNEL_NO = "400";

    const WITHDRAW_CREATE_SQL_GENERATE_FAILURE = "提现订单生成失败";
    const WITHDRAW_CREATE_SQL_GENERATE_FAILURE_NO = "422";

    const THERE_IS_NOT_AVAILABLE_CLASS = "不存在有效的提现类,请联系技术";
    const THERE_IS_NOT_AVAILABLE_CLASS_NO = "422";

    const THERE_IS_NOT_AVAILABLE_METHOD = "不存在有效的提现方法,请联系技术";
    const THERE_IS_NOT_AVAILABLE_METHOD_NO = "422";

    const THERE_IS_NOT_AVAILABLE_QUERY_METHOD = "不存在有效的查询提现订单状态的方法,请联系技术";
    const THERE_IS_NOT_AVAILABLE_QUERY_METHOD_NO = "422";

    const INVALID_STATS = "无效提现订单的订单状态";
    const INVALID_STATS_NO = "400";

    const WITHDRAW_NO_OUT_TRADE_NO = "没有上游订单编号";
    const WITHDRAW_NO_OUT_TRADE_NO_NO = "400";

    const WITHDRAW_FAILURE = "提现接口调用失败，联系技术";
    const WITHDRAW_FAILURE_NO = "422";
}
